package bdhub.littletail.lib.net.volley;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by Freddy on 2016/2/23.
 * chenshichao@outlook.com
 */
public class BusinessError extends VolleyError {
    private static final long serialVersionUID = 1L;

    private int mErrorCode;
    private String mMessage;
    private JSONObject mData;

    /** 手机号已注册，请重新登录 */
    public static final int PHONE_NUMBER_REGISTERED = 102;

    public void setErrorCode(int errprCode) {
        mErrorCode = errprCode;
    }
    public int getErrorCode() {
        return mErrorCode;
    }

    public void setMessage(String message) {
        this.mMessage = message;
    }

    public JSONObject getData() {
        return mData;
    }

    public void setData(JSONObject data) {
        this.mData = data;
    }

    @Override
    public String getMessage() {
        return mMessage;
    }
}
